package com.robaone.gwt.jsonp.client;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;

public class DSResponse<D extends JavaScriptObject> extends JavaScriptObject {
	protected DSResponse(){}
	public final native int getStatus()/*-{
		return this.response.status;
	}-*/;
	public final native JsArray<D> getData()/*-{
		return this.response.data;
	}-*/;
	public final native int getStartRows()/*-{
		return this.response.startRows;
	}-*/;
	public final native int getEndRow()/*-{
		return this.response.endRow;
	}-*/;
	public final native int getTotalRows()/*-{
		return this.response.totalRows;
	}-*/;
	public final native DSError getErrors()/*-{
		return this.response.errors;
	}-*/;
	public final native DSResponse<D> eval(JavaScriptObject jso)/*-{
		return eval(jso);
	}-*/;
}
